Inheritance: MonoBehaviour
Ejemplo n.º 1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         WindowChange();
     }
     if (Input.GetKeyDown(KeyCode.S))
     {
         BackController.Anim();
     }
 }
Ejemplo n.º 2
0
    public override void SetObject(IObject obj)
    {
        base.SetObject(obj);

        mMaxAttackCount = obj.GetProperty("AttackActionCount").GetInt();

        animator         = obj.mGameObject.GetComponent <Animator>();
        my_AttackCtrl    = animator.GetBehaviour <IAttackController>();
        my_BackCtrl      = animator.GetBehaviour <BackController>();
        my_SkillCtrl     = animator.GetBehaviour <ISkillController>();
        my_SwoonCtrl     = animator.GetBehaviour <SwoonController>();
        mFloatController = animator.GetBehaviour <FloatController>();
        mSkillComponent  = obj.GetComponent <SkillComponent>();
    }
Ejemplo n.º 3
0
 void CloseBack()
 {
     BackController.Anim();
 }