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

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