Esempio n. 1
0
        public void Initialization(EnemyType enemyType, Transform point)
        {
            var enemyBehaviour = CustomResources.Load <EnemyBehaviour>
                                     (AssetsPathEnemiesGameObject.EnemyGameObject[enemyType]);

            EnemyBehaviour = Instantiate(enemyBehaviour, point.position, point.rotation);
        }
        public void Initialization()
        {
            var characterBehaviour = CustomResources.Load <CharacterBehaviour>
                                         (AssetsPathGameObject.GameObjects[GameObjectType.Character]);

            Data.Instance.Character.CharacterBehaviour = Object.Instantiate(characterBehaviour);
        }
Esempio n. 3
0
        public void Initialization()
        {
            var buterflyBehaviour = CustomResources.Load <ButterflyBehaviour>
                                        (AssetsPathGameObject.GameObjects[GameObjectType.Butterfly]);

            Object.Instantiate(buterflyBehaviour);
        }
Esempio n. 4
0
        public void Initialization()
        {
            var characterBehaviour = CustomResources.Load <CharacterBehaviour>
                                         (AssetsPathGameObject.GameObjects[GameObjectType.Character]);

            CharacterBehaviour = Instantiate(characterBehaviour);
            _timeService       = Services.Instance.TimeService;
        }
Esempio n. 5
0
 public EndGameMenuBehaviour GetEndGameMenu()
 {
     if (_endGameMenu == null)
     {
         var resources = CustomResources.Load <EndGameMenuBehaviour>(AssetsPathScreen.Screens[ScreenType.EndGameMenu].Screen);
         _endGameMenu = Object.Instantiate(resources, _canvas.transform.position, Quaternion.identity, _canvas.transform);
     }
     return(_endGameMenu);
 }
Esempio n. 6
0
        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;
        }
Esempio n. 7
0
 private static T Load <T>(string resourcesPath) where T : Object =>
 CustomResources.Load <T>(Path.ChangeExtension(resourcesPath, null));
Esempio n. 8
0
        public ScreenFactory()
        {
            var resources = CustomResources.Load <Canvas>(AssetsPathGameObject.GameObjects[GameObjectType.Canvas]);

            _canvas = Object.Instantiate(resources, Vector3.one, Quaternion.identity);
        }