Exemple #1
0
    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;
        }
    }
Exemple #2
0
    void Start()
    {
        this.currentID = UnityEngine.Random.Range(0, 2);

        this.stageBoss = StageBoss.APRESENTATION;

        this.timeIdle = 3;

        this.chargeRoutine();
    }
Exemple #3
0
 private void Awake()
 {
     stageBoss = GameObject.FindWithTag("Boss").GetComponent <StageBoss>();
     eyeBall   = gameObject.GetComponentInChildren <EyeBall>(true);
 }
Exemple #4
0
    void posApresentation()
    {
        StartCoroutine(idleRobot());

        stageBoss = StageBoss.STAGE_ONE;
    }
Exemple #5
0
 private void Awake()
 {
     spriteRenderer = gameObject.GetComponent <SpriteRenderer>();
     stageBoss      = GameObject.FindWithTag("Boss").GetComponent <StageBoss>();
 }