protected void Awake() { _mover = gameObject.GetComponent<RigidBodyMover>(); _meleeAttacker = gameObject.GetComponent<MeleeAttacker>(); Enable(); }
protected void Awake() { _mover = gameObject.GetComponent <RigidBodyMover>(); _meleeAttacker = gameObject.GetComponent <MeleeAttacker>(); Enable(); }
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>(); }
public HeroWalkState(GameObject hero) : base(hero, HeroState.Walk) { _mover = _gameObject.GetComponent<RigidBodyMover>(); }