예제 #1
0
 public void Init(StateManager stat)
 {
     state = stat;
     //processedData = state.processedData;
     atkManager = BaseData.Instance.gameObject.GetComponent <ATKManager>();
     rotateGun  = this.gameObject.GetComponent <RotateGun>();
 }
예제 #2
0
 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();
 }