rifaterdemsahin / aif

Adaptive Intelligence Framework
5 stars 7 forks source link

Prefab management #198

Open rifaterdemsahin opened 5 years ago

rifaterdemsahin commented 5 years ago

Definition of Done 👍 Be able to get the prefabs from freelancers and implement in your systems.

Loaderscene is used so use it. image

rifaterdemsahin commented 5 years ago

Drag to the prefab

set the properties using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement;

public class loadstory : MonoBehaviour {

public string scenetoload;
public int secondstoWait;

IEnumerator Wait()
{
    yield return new WaitForSeconds(secondstoWait);
    SceneManager.LoadScene(scenetoload);
}
// Use this for initialization
void Start () {
        StartCoroutine("Wait");
}

// Update is called once per frame
void Update () {

}

}

rifaterdemsahin commented 5 years ago

Naming and folder location is important https://github.com/rifaterdemsahin/aif/issues/274

Still i have to map when the prefab enters the scene which looks normal

rifaterdemsahin commented 5 years ago

Folder system ( make it ready for in and out ready ) image

Sample implementation and issues https://drive.google.com/drive/folders/1noPEQkBVe_lFHeEWwGhakkPaLMsFe3Yd?usp=sharing

rifaterdemsahin commented 5 years ago

Our prefab implementation outlines here. In this video and we make sure that the game uses prefab as much as possible. https://drive.google.com/file/d/1KcdHqDqdfXgaVAzj5m-8AKJWb-DvkiUS/view?usp=sharing

rifaterdemsahin commented 5 years ago

Prefab questions in reddit https://www.reddit.com/r/Unity3d_help/comments/9ev78z/focusing_not_to_touch_the_prefabs/