// Use this for initialization void Start() { _dirConfig = new DirectionKeyConfig(); _dirConfig.up = KeyCode.W; _dirConfig.right = KeyCode.D; _dirConfig.down = KeyCode.S; _dirConfig.left = KeyCode.A; _spellConfig = new SpellKeyConfig(); _spellConfig.cast = KeyCode.F; _spellConfig.transition = KeyCode.Y; _controller = GetComponent <CharacterController>(); _state = CharacterState.MOVING; _spell = new PerfectSpell(); _reticuleFactory = FindObjectsOfType(typeof(ReticuleFactory)).Cast <ReticuleFactory>().First(); }
// Use this for initialization void Start() { _dirConfig = new DirectionKeyConfig(); _dirConfig.up = KeyCode.I; _dirConfig.right = KeyCode.L; _dirConfig.down = KeyCode.K; _dirConfig.left = KeyCode.J; _spellConfig = new SpellKeyConfig(); _spellConfig.cast = KeyCode.N; _spellConfig.transition = KeyCode.M; _controller = GetComponent<CharacterController>(); _state = CharacterState.MOVING; _spell = new TerribleSpell(); _reticuleFactory = FindObjectsOfType(typeof(ReticuleFactory)).Cast<ReticuleFactory>().First(); }