protected new void Awake() { base.Awake(); _audio = GetComponent <MyAudioSource>(); (_coll = GetComponent <Collider2D>()).enabled = false; (_rend = GetComponent <SpriteRenderer>()).enabled = false; OrbitSpawnAttackState s1 = new OrbitSpawnAttackState(_ASM, this); OrbitClearingAttackState s2 = new OrbitClearingAttackState(_ASM, this); s1.SetTargetStates(s2); _ASM.InitializeWithStates(new InactiveEnabledDisableAttackState(_ASM, this), s1); }
public void SetTargetStates(OrbitClearingAttackState orbitClearingAttackState) { _orbitClearingAttackState = orbitClearingAttackState; }