Beispiel #1
0
 void Awake()
 {
     if (instance = null)
     {
         instance = this;
         DontDestroyOnLoad(instance);
     }
 }
Beispiel #2
0
    void Start()
    {
        pgm = GameObject.FindGameObjectWithTag("PGM").GetComponent <PlatformGM>();

        sgm = GameObject.FindGameObjectWithTag("SGM").GetComponent <ShieldGM>();

        player = GetComponent <PlayerContr>();
    }