public void Initialization() { var characterBehaviour = CustomResources.Load <CharacterBehaviour> (AssetsPathGameObject.GameObjects[GameObjectType.Character]); CharacterBehaviour = Instantiate(characterBehaviour); _timeService = Services.Instance.TimeService; }
public void Initialization(CharacterType characterType, Transform point) { var characterBehaviour = CustomResources.Load <CharacterBehaviour> (AssetsPathCharactersGameObjects.CharacterGameObject[characterType]); CharacterBehaviour = Instantiate(characterBehaviour, point.position, point.rotation); ArrowBehaviour = CharacterBehaviour.GetComponentInChildren <ArrowBehaviour>(); _timeService = Services.Instance.TimeService; }