public async Task LoadObjectSprites() { ObjectSprites = await CreateAddressablesLoader.CreateAsset <AllObjects>(OBJECT_SPRITES); Object = await CreateAddressablesLoader.CreateAsset <GameObject>(OBJECT_NAME); GameObject gameObject = await CreateAddressablesLoader.CreateGameObject(NEXT_ROUND_PARTICLE); NextRoundParticle = gameObject.GetComponentInChildren <ParticleSystem>(); NextRoundParticle.Stop(); }
public async Task <HorizontalView> CreateHorizontalView(Transform parent) { GameObject gameObject = await CreateAddressablesLoader.CreateGameObject(HORIZONTAL_VIEW_NAME, parent); return(gameObject.GetComponent <HorizontalView>()); }
public async Task <GameObject> CreatePlayStateView() { return(await CreateAddressablesLoader.CreateGameObject(PLAY_STATE_VIEW_NAME));; }
public async Task <RoundView> CreateRoundView(Transform parent) { GameObject gameObject = await CreateAddressablesLoader.CreateGameObject(ROUND_VIEW_NAME, parent); return(gameObject.GetComponent <RoundView>()); }
public async Task <GameOverView> CreateGameOverView(Transform parent) { GameObject gameObject = await CreateAddressablesLoader.CreateGameObject(GAME_OVER_VIEW_NAME, parent); return(gameObject.GetComponent <GameOverView>()); }
public async Task <DestinationObjectView> CreateDestinationObjectView(Transform parent) { GameObject gameObject = await CreateAddressablesLoader.CreateGameObject(DESTINATION_VIEW_NAME, parent); return(gameObject.GetComponent <DestinationObjectView>()); }