void destructionOne( ) { if (stageBoss == StageBoss.STAGE_ONE) { GetComponent <RobotLife>().secondsStage(); GameObject.Find("EnemyLife").GetComponent <InterfaceLifeBoss>().onStartAnimation(GetComponent <RobotLife>().getLife()); StartCoroutine(idleRobot()); this.currentID = UnityEngine.Random.Range(0, 3); stageBoss = StageBoss.STAGE_TWO; } else if (stageBoss == StageBoss.STAGE_TWO) { GetComponent <RobotLife>().treeStage(); GameObject.Find("EnemyLife").GetComponent <InterfaceLifeBoss>().onStartAnimation(GetComponent <RobotLife>().getLife()); this.timeIdle = 3.5f; StartCoroutine(idleRobot()); this.currentID = 0; stageBoss = StageBoss.STAGE_TREE; } }
void Start() { this.currentID = UnityEngine.Random.Range(0, 2); this.stageBoss = StageBoss.APRESENTATION; this.timeIdle = 3; this.chargeRoutine(); }
private void Awake() { stageBoss = GameObject.FindWithTag("Boss").GetComponent <StageBoss>(); eyeBall = gameObject.GetComponentInChildren <EyeBall>(true); }
void posApresentation() { StartCoroutine(idleRobot()); stageBoss = StageBoss.STAGE_ONE; }
private void Awake() { spriteRenderer = gameObject.GetComponent <SpriteRenderer>(); stageBoss = GameObject.FindWithTag("Boss").GetComponent <StageBoss>(); }