Example #1
0
    // возвращаем объект в пул
    public void ReturnToPull()
    {
        if (!inPull)
        {
            inPull = true;
            Stop();

            if (!childStar.gameObject.activeSelf)
            {
                childStar.gameObject.SetActive(true);
            }

            SpawnRocks.ChangeChildPosition(gameObject);
            SpawnRocks.pullObjects.Enqueue(gameObject);
        }
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     _spawn      = world.GetComponent <Spawn> ();
     _spawnrocks = world.GetComponent <SpawnRocks> ();
 }