Пример #1
0
    void Start()
    {
        stopShoot      = _trenchManager.GetComponent <trenchManager>();
        activeDeadBool = trenchDead.GetComponent <trenchExplode>();
        MAGdead        = particleSystem.GetComponent <shootMAG>();

        Health = 100;
        bullet = GameObject.Find("BulletM4a1");
        GODead = false;
    }
Пример #2
0
    void Start()
    {
        captGunbools     = trenchGO.GetComponent <lookAtTrench>();
        detection        = trenchGO.GetComponent <DetectTarget>();
        gettingTypeShoot = _particleSystem.GetComponent <shootMAG>();

        captTarget           = GameObject.Find("Player");
        target               = captTarget.transform;
        detection.enemiesTag = target.tag;
        currentState         = sceneBuilder.Behavior.Idle; // vehicle start in Vigilant
    }