Example #1
0
    void Awake()
    {
        // Setting up the references.
        anim          = transform.parent.gameObject.GetComponent <Animator>();
        playerCtrl    = transform.parent.GetComponent <MonkeyControl> ();
        ui_weapon_num = GameObject.FindGameObjectWithTag("UI_Weapon_num").GetComponent <Text> ();

        initWeapon();
    }
Example #2
0
    public void StartReborn()
    {
        rebornDialog.SetActive(false);
        MonkeyControl mc = playerPos.gameObject.GetComponent <MonkeyControl> ();

        mc.enabled = true;
        mc.reset(rebornPoints [pendingRebornPoint - 1].position);
        rebornDialog.SetActive(false);
        resumeEnemySpawn();
    }