Exemple #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Exemple #2
0
    void Start()
    {
        flagManager = this.GetComponent <FlagInstantiator>();

        if (playerGameObject == null)
        {
            playerGameObject = GameObject.Find("Player");
        }
        playerMoviment = playerGameObject.GetComponent <BasicMoviment>();
    }