Пример #1
0
    void Awake()
    {
        comp_Frog_Manager = GameObject.Find("GameLogic_Manager").GetComponent <Comp_Frog_Manager>();
        frog     = new cFrog(this);
        animator = GetComponent <Animator>();

        comp_Kappa_Controller = GameObject.Find("Player").GetComponent <Comp_Kappa_Controller>();
    }
Пример #2
0
    public void SpawnFrog(string name, Vector3 position)
    {
        //Vector3 spawn_position = position;
        Vector3 spawn_position = Pelican_Frog_Emissor.position;

        /*
         * if (GameLogicManager.Instance.GetPlayerPosition().x + 2 > position.x)
         *  return;*/

        cFrog frog = getFirstFrogAvaible();

        frog._transform.position = spawn_position;
        frog._transform.parent   = Pelican_Frog_Emissor;
        frog.Enable();
    }