Esempio n. 1
0
 void Awake()
 {
     _anim = GetComponent <Animator>();
     _rb   = GetComponent <Rigidbody2D>();
     // next skills
     _theSlashingKi = GetComponent <TheSlashingKi>();
     _theSlash      = GetComponent <TheBlackKnightSlash>();
     _theJump       = GetComponent <TheBlackKnightJump>();
     _dampingDown   = GetComponent <TheBlackKnightDampingDown>();
 }
Esempio n. 2
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>();
 }
Esempio n. 3
0
    void Awake()
    {
        _anim            = GetComponent <Animator>();
        _cachedTransform = transform;
        _rb = GetComponent <Rigidbody2D>();
        // Generate by probability
        _kiKinds = Probability.Initialize(new[] { 0, 1 }, new[] { 75f, 25f });

        _theGetBack           = GetComponent <TheBlackKnightGetBack>();
        _theSlamDownWithPower = GetComponent <TheDashingDownWithPower>();
        _theSlash             = GetComponent <TheBlackKnightSlash>();
        _theJump     = GetComponent <TheBlackKnightJump>();
        _dampingDown = GetComponent <TheBlackKnightDampingDown>();
    }