コード例 #1
0
 void Awake()
 {
     bestScore = PlayerPrefs.GetInt("BEST");
     //player = GameObject.Find("Player");
     player      = FindObjectOfType <PlaayerMove>();
     MinPosition = new Vector2(-7f, -13f);
     MaxPosition = new Vector2(7f, 13f);
     Spawnhihi   = StartCoroutine(SpawnCroissant());
     poolManager = FindObjectOfType <poolManager>();
     Spawnhihihi = StartCoroutine(SpawnHotdog());
 }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        poolManager pool = new poolManager(go, feathersPos.Count);

        for (int i = 0; i < feathersPos.Count; i++)
        {
            GameObject feather = pool.Get();
            feather.transform.position = feathersPos[i];
            feather.GetComponent <collectableScripte>().progress = progress;
            feather.GetComponent <collectableScripte>().source   = collectSound;
            feather.GetComponent <collectableScripte>().pcc      = pcc;
            feather.GetComponent <collectableScripte>().tag      = this.tag;
            feather.GetComponent <collectableScripte>().pool     = pool;
            feather.GetComponent <collectableScripte>().bee      = bee;
        }
    }
コード例 #3
0
    // Start is called before the first frame update

    private void Awake()
    {
        instance = this;
    }
コード例 #4
0
 // Start is called before the first frame update
 void Start()
 {
     _poolManager = poolManager.instance;
 }
コード例 #5
0
 public void Start()
 {
     _poolManager = poolManager.instance;
     InvokeRepeating("LaunchBullet", 0, repeatRate);
 }