private void Awake() { _eatingController = FindObjectOfType <EatingBugsController>(); _particlesController = FindObjectOfType <ParticlesController>(); _rotatingModel = FindObjectOfType <RotatingObject>(); _turningEffect = FindObjectOfType <TurningEffect>(); }
private void Awake() { _rotationController = FindObjectOfType <RotationController>(); _eatingController = FindObjectOfType <EatingBugsController>(); _particlesController = FindObjectOfType <ParticlesController>(); _frozenEffect = FindObjectOfType <FrozenEffect>(); _enemyEffects = FindObjectOfType <EnemyEffects>(); }
/// ///////////////////////////////////////////// void Awake() { m_hRigidBody = this.GetComponent<Rigidbody>(); m_hParticlesController = this.GetComponentInChildren<ParticlesController>(); damageRates = new Dictionary<ArmorType, float>(); damageRates.Add(ArmorType.Light, LightArmorDamageRate); damageRates.Add(ArmorType.Medium, MediumArmorDamageRate); damageRates.Add(ArmorType.Heavy, HeavyArmorDamageRate); }
private void Awake() { _rigidbody = GetComponent <Rigidbody>(); _particlesController = FindObjectOfType <ParticlesController>(); int num1 = Random.Range(0, 3); int num2 = Random.Range(0, 3 - num1); int num3 = Random.Range(0, 3 - num1 - num2); _customDestinationVector = new Vector3(0, 0, 0.5f); RotationVector = new Vector3(num1, num2, num3); }
public HipsterEngine(float width, float height) { Physics = new PhysicsController(this); Surface = new Surface(); Surface.Width = width; Surface.Height = height; Particles = new ParticlesController(); Screens = new ScreenController(this); DeltaTime = new DeltaTime(); Files = new Files.Files(); }
private void Awake() { _eatingModel = FindObjectOfType <EatingModel>(); _movingUpObjects = FindObjectOfType <MovingUpObjects>(); _inputController = FindObjectOfType <InputController>(); _staminaSlider = FindObjectOfType <StaminaSlider>(); _animatorsModel = FindObjectOfType <AnimatorsModel>(); _particlesController = FindObjectOfType <ParticlesController>(); _bossModel = FindObjectOfType <Boss>(); _coins = FindObjectOfType <Coins>(); }
void Awake() { this.controller = GetComponent<ParticlesController>(); this.follow = new FollowTarget(this); this.noTarget = new NoTarget(this); this.gameObject.SetActive(false); damageRates = new Dictionary<ArmorType, float>(); damageRates.Add(ArmorType.Light, LightArmorDamageRate); damageRates.Add(ArmorType.Medium, MediumArmorDamageRate); damageRates.Add(ArmorType.Heavy, HeavyArmorDamageRate); }
void Awake() { if (instancia != null) { Destroy(instancia); } instancia = this; for (int i = 0; i < asParticulas.Length; i++) { particlesDict.Add(asParticulas[i].name, asParticulas[i]); } }
// Start is called before the first frame update void Start() { GameState = new GameState(this); GameController = new GameController(this); MapController = new MapController(this); BuilderController = new BuilderController(this); EnemyController = new EnemyController(this); UIController = new UIController(this); ParticlesController = new ParticlesController(this, Particles, ParticlesParent); Scheduler.SetGameSystem(this); GameController.Start(); }
void Awake() { m_hRigidbody = this.GetComponent<Rigidbody>(); m_hCollider = this.GetComponent<Collider>(); m_hParticlesController = this.GetComponentInChildren<ParticlesController>(); m_hDelay = new DelayState(this); FlyState hFly = new FlyState(this); m_hDelay.Next = hFly; m_hCurrent = m_hDelay; damageRates = new Dictionary<ArmorType, float>(); damageRates.Add(ArmorType.Light, LightArmorDamageRate); damageRates.Add(ArmorType.Medium, MediumArmorDamageRate); damageRates.Add(ArmorType.Heavy, HeavyArmorDamageRate); }
private void Start() { Data.Init(); if (Data.ID != "Foresta") { Data._particleController = GetComponentInChildren <ParticlesController>(); _particle = Data._particleController; _particle.Init(); } if (Data.ID != "Foresta") { SetBuildingStatus(BuildingState.Construction); } else { CurrentMesh = GetComponent <MeshFilter>(); SetBuildingStatus(BuildingState.Ready); CurrentMesh.mesh = Pino; } }
private void Awake() { _eatingController = FindObjectOfType <EatingBugsController>(); _particlesController = FindObjectOfType <ParticlesController>(); }
void Awake() { m_hParticlesController = this.GetComponentInChildren<ParticlesController>(); }
private void Start() { source = GetComponent <AudioSource>(); particlesHandler = particles.GetComponent <ParticlesController>(); }