Пример #1
0
 // Use this for initialization
 void Start()
 {
     atkTimer     = 0.0f;
     atkDelay     = -1.0f;
     curAMode     = eAttackMode.NORMAL;
     anim         = this.gameObject.GetComponent <Animator> ();
     targeter     = this.gameObject.GetComponent <IsTargeter>();
     dSCollection = this.gameObject.GetComponent <SkillCollection> ();
     dead         = false;
 }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        normalAtkTimer   = 0.0f;
        fireArrowTimer   = 0.0f;
        fireballAtkTimer = 0.0f;
        iceAtkTimer      = 0.0f;
        iceDragonTimer   = 0.0f;

        anim      = this.gameObject.GetComponent <Animator>();
        walkSpeed = 2.5f;
        rotSpeed  = 150.0f;
        // walkBckSpeed = 0.75f;

        HP = GameObject.Find("HP").GetComponent <Text>();
        GP = GameObject.Find("GP").GetComponent <Text>();
        AP = GameObject.Find("AP").GetComponent <Text>();
        DP = GameObject.Find("DP").GetComponent <Text>();

        pSCollection = this.GetComponent <SkillCollection>();
        targeter     = GetComponent <IsTargeter>();
    }