void Start() { Animator animator = GetComponent <Animator>(); behaviors[typeof(StateMovement)] = new StateMovement(); behaviors[typeof(StateShoot)] = new StateShoot(); SetState <StateMovement>(); }
private StateShoot() { if (_instance != null) { return; } _instance = this; }