コード例 #1
0
 private void Awake()
 {
     _eatingController    = FindObjectOfType <EatingBugsController>();
     _particlesController = FindObjectOfType <ParticlesController>();
     _rotatingModel       = FindObjectOfType <RotatingObject>();
     _turningEffect       = FindObjectOfType <TurningEffect>();
 }
コード例 #2
0
 private void Awake()
 {
     _rotationController  = FindObjectOfType <RotationController>();
     _eatingController    = FindObjectOfType <EatingBugsController>();
     _particlesController = FindObjectOfType <ParticlesController>();
     _frozenEffect        = FindObjectOfType <FrozenEffect>();
     _enemyEffects        = FindObjectOfType <EnemyEffects>();
 }
コード例 #3
0
    /// /////////////////////////////////////////////
  
    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);

    }
コード例 #4
0
ファイル: Bomb.cs プロジェクト: DronCorleone/NewWebshooter
    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);
    }
コード例 #5
0
 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();
 }
コード例 #6
0
 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>();
 }
コード例 #7
0
    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);
    }
コード例 #8
0
    void Awake()
    {
        if (instancia != null)
        {
            Destroy(instancia);
        }
        instancia = this;

        for (int i = 0; i < asParticulas.Length; i++)
        {
            particlesDict.Add(asParticulas[i].name, asParticulas[i]);
        }
    }
コード例 #9
0
    // 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();
    }
コード例 #10
0
    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);
    }
コード例 #11
0
 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;
     }
 }
コード例 #12
0
 private void Awake()
 {
     _eatingController    = FindObjectOfType <EatingBugsController>();
     _particlesController = FindObjectOfType <ParticlesController>();
 }
コード例 #13
0
 void Awake()
 {
     m_hParticlesController = this.GetComponentInChildren<ParticlesController>();
 }
コード例 #14
0
 private void Start()
 {
     source           = GetComponent <AudioSource>();
     particlesHandler = particles.GetComponent <ParticlesController>();
 }