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(); }
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(); }