Exemple #1
0
    void Awake()
    {
//#if UNITY_EDITOR
        //Application.LoadLevel(9);
//#endif
        if (_instance == null)
        {
            _instance = this;
            // DontDestroyOnLoad(this);
        }


        AssignGhosts();
    }
Exemple #2
0
 void Start()
 {
     GM          = GameObject.Find("Game ManagerPac").GetComponent <GameManagerPac>();
     _dest       = transform.position;
     sourceprofe = gameObject.AddComponent <AudioSource>();
 }