Beispiel #1
0
 void Start()
 {
     Destroy(gameObject, 11f);
     getPlayer = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();
     //getBoss = GameObject.Find("LastBoss(Clone)").GetComponent<Ranged1>();
     getBoss = GameObject.FindGameObjectWithTag("Boss").GetComponent <Ranged1>();
 }
    public void Init()
    {
        target     = GameObject.FindGameObjectWithTag("Player");
        getRanged1 = GetComponent <Ranged1>();
        //isFrozen = true;

        originPos = transform.position;

        coroutine = WaitAndAttack(0.5f, 1f);
        StartCoroutine(coroutine);

        character       = GetComponent <ICharacter>();
        character.phase = phase;
        phase           = 0;
        limitLeft       = GameObject.Find("limitLeftSide").transform;
        limitRight      = GameObject.Find("limitRightSide").transform;
        direction       = limitLeft.position - originPos;
        character.GetStats().SetSpeed(10);
    }
Beispiel #3
0
 void Start()
 {
     bossScript = GetComponent <Ranged1>();
     bossInput  = GetComponent <GRP3BossInput>();
     EquipeQuickBazookaWeapon();
 }