Beispiel #1
0
 private void Start()
 {
     strikerPool = StrikerPool.Instance;
     if (shootPoint.childCount < 0 && Time.time >= timeToSpawnStriker)
     {
         SpawnStriker();
     }
 }
Beispiel #2
0
    // Use this for initialization
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else if (Instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);
        InitializePool();
    }