Beispiel #1
0
    protected void Awake()
    {
        _mover = gameObject.GetComponent<RigidBodyMover>();
        _meleeAttacker = gameObject.GetComponent<MeleeAttacker>();

        Enable();
    }
Beispiel #2
0
    protected void Awake()
    {
        _mover         = gameObject.GetComponent <RigidBodyMover>();
        _meleeAttacker = gameObject.GetComponent <MeleeAttacker>();

        Enable();
    }
Beispiel #3
0
 public HeroWalkState(GameObject hero) :
     base(hero, HeroState.Walk)
 {
     _mover = _gameObject.GetComponent <RigidBodyMover>();
 }
 public MonsterWanderState(GameObject monster)
     : base(monster, MonsterState.Wander)
 {
     _mover = _gameObject.GetComponent<RigidBodyMover>();
 }
 public MonsterWanderState(GameObject monster) :
     base(monster, MonsterState.Wander)
 {
     _mover = _gameObject.GetComponent <RigidBodyMover>();
 }
Beispiel #6
0
 public HeroWalkState(GameObject hero)
     : base(hero, HeroState.Walk)
 {
     _mover = _gameObject.GetComponent<RigidBodyMover>();
 }