public void Init(StateManager stat) { state = stat; //processedData = state.processedData; atkManager = BaseData.Instance.gameObject.GetComponent <ATKManager>(); rotateGun = this.gameObject.GetComponent <RotateGun>(); }
public void Init(InputHandler input) { player = GameObject.FindGameObjectWithTag("Player"); inputHandler = input; msManager = this.gameObject.GetComponent <MoveSpeedManager>(); msManager.Init(input.states); atkManager = this.gameObject.GetComponent <ATKManager>(); atkManager.Init(); }