Пример #1
0
 void Awake()
 {
     _anim = GetComponent <Animator>();
     _rb   = GetComponent <Rigidbody2D>();
     // next skills
     _theSlashingKi = GetComponent <TheSlashingKi>();
     _theSlash      = GetComponent <TheBlackKnightSlash>();
     _theGetBack    = GetComponent <TheBlackKnightGetBack>();
     _dampingDown   = GetComponent <TheBlackKnightDampingDown>();
 }
Пример #2
0
 // Use this for initialization
 void Awake()
 {
     _cachedTransform = transform;
     _anim            = GetComponent <Animator>();
     _rb          = GetComponent <Rigidbody2D>();
     _boxCollider = GetComponent <BoxCollider2D>();
     // next skills
     _theGetBack    = GetComponent <TheBlackKnightGetBack>();
     _theSlash      = GetComponent <TheBlackKnightSlash>();
     _theSlashingKi = GetComponent <TheSlashingKi>();
 }
Пример #3
0
 void Awake()
 {
     _anim  = GetComponent <Animator>();
     _rigid = GetComponent <Rigidbody2D>();
     // next skills
     _theSlashingKi        = GetComponent <TheSlashingKi>();
     _theGetBack           = GetComponent <TheBlackKnightGetBack>();
     _theSlamDownWithPower = GetComponent <TheDashingDownWithPower>();
     _theJump     = GetComponent <TheBlackKnightJump>();
     _dampingDown = GetComponent <TheBlackKnightDampingDown>();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     _slash                 = GetComponent <TheBlackKnightSlash>();
     _slashingKi            = GetComponent <TheSlashingKi>();
     _jumpAndDampingFire    = GetComponent <TheJumpAndDampingFire>();
     _dashingDownWithPower  = GetComponent <TheDashingDownWithPower>();
     _slashingKiWhenGetBack = GetComponent <TheSlashingKiWhenGetBack>();
     _getBack               = GetComponent <TheBlackKnightGetBack>();
     _dampingDown           = GetComponent <TheBlackKnightDampingDown>();
     // _skills = new Skill[] { _slash, _slashingKi, _dashingDownWithPower };
     _skills = new Skill[] { _dampingDown };
     StartCoroutine(Play());
 }