Esempio n. 1
0
 public override ActionResult Execute(RAIN.Core.AI ai)
 {
     enemyshoot          = ai.Body.GetComponentInChildren <EnemyBasic>();
     enemyshoot.canShoot = true;
     return(ActionResult.FAILURE);
 }
Esempio n. 2
0
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
 }
Esempio n. 3
0
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
     attackDamage = ai.WorkingMemory.GetItem <int>("attackDamage");
 }
 public override void Stop(RAIN.Core.AI ai)
 {
     ai.WorkingMemory.SetItem <GameObject>("target", target);
     base.Stop(ai);
 }
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
     //Debug.Log(ai.Body.name + " : PassantSelectAndEnterScene");
 }
Esempio n. 6
0
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
     pathfinding = ai.Body.GetComponent <Pathfinding>();
     bodyY       = ai.Body.transform.position.y;
 }
Esempio n. 7
0
 public override ActionResult Execute(RAIN.Core.AI ai)
 {
     return(ActionResult.SUCCESS);
 }
Esempio n. 8
0
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
     ai.WorkingMemory.SetItem <Vector3>("InitialPosition", new Vector3(0, 0, 99));
     ai.WorkingMemory.SetItem <Vector3>("PlayerPosition", new Vector3(0, 0, 99));
 }
Esempio n. 9
0
 public override ActionResult Execute(RAIN.Core.AI ai)
 {
     ai.WorkingMemory.SetItem <bool> ("enaSpawn", true);
     PlayerController.enaUsePower = false;
     return(ActionResult.SUCCESS);
 }
Esempio n. 10
0
 public override ActionResult Execute(RAIN.Core.AI ai)
 {
     MonoBehaviour.Destroy(ai.Body);
     return(ActionResult.SUCCESS);
 }
Esempio n. 11
0
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
     actionName = "LookAtTarget";
 }
Esempio n. 12
0
 public override ActionResult Execute(RAIN.Core.AI ai)
 {
     control.reduceHealth(20);
     ctrlSound.EnemyAttack();
     return(ActionResult.SUCCESS);
 }
Esempio n. 13
0
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
     control   = GameObject.Find("GameControl").GetComponent <GameControlScript> ();
     ctrlSound = GameObject.Find("unitychan_dynamic_locomotion").GetComponent <MultiSound>();
 }
Esempio n. 14
0
 public override ActionResult Execute(RAIN.Core.AI ai)
 {
     Debug.Log("Fraco");
     return(ActionResult.SUCCESS);
 }
    public override void Start(RAIN.Core.AI ai)
    {
        base.Start(ai);

        _lastRunning = 0;
    }
Esempio n. 16
0
 public override ActionResult Execute(RAIN.Core.AI ai)
 {
     ai.Body.audio.Play();
     return(ActionResult.SUCCESS);
 }
Esempio n. 17
0
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
     builderScript = ai.Body.GetComponent <Builder>();
     gatherRate    = builderScript.gatherRate;
 }
Esempio n. 18
0
 public override ActionResult Execute(RAIN.Core.AI ai)
 {
     FindBestCoverPoint(ai);
     return(ActionResult.SUCCESS);
 }
Esempio n. 19
0
 public override ActionResult Execute(RAIN.Core.AI ai)
 {
     GameObject.Destroy(ai.Body);
     return(ActionResult.SUCCESS);
 }
Esempio n. 20
0
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
     player      = GameObject.FindGameObjectWithTag("player").transform;
     playerRigid = player.GetComponent <Rigidbody>();
 }
Esempio n. 21
0
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
     target = ai.WorkingMemory.GetItem <GameObject>("target");
     //Debug.Log(ai.Body.name + " : SELECT TARGET ");
 }
Esempio n. 22
0
    public override ActionResult Execute(RAIN.Core.AI ai)
    {
        updateFutureLocation(ai);

        return(ActionResult.SUCCESS);
    }
Esempio n. 23
0
    public override ActionResult Execute(RAIN.Core.AI ai)
    {
        ai.WorkingMemory.SetItem <float>("moveSpeed", 0);

        return(ActionResult.SUCCESS);
    }
Esempio n. 24
0
 public override void Start(RAIN.Core.AI ai)
 {
     base.Start(ai);
     GameObject.Find("Cannon").GetComponentInChildren <shot_script>().Shoot();
     GameObject.Find("Cannon (1)").GetComponentInChildren <shot_script>().Shoot();
 }
Esempio n. 25
0
 public override ActionResult Execute(RAIN.Core.AI ai)
 {
     //Debug.Log ("Hola soy la accion de la pelota");
     ai.Body.GetComponent <Enemigo> ().createBall();
     return(ActionResult.SUCCESS);
 }
Esempio n. 26
0
 public override void Start(RAIN.Core.AI ai)
 {
     //ai.WorkingMemory.SetItem<bool> ("moving", true);
     base.Start(ai);
 }
Esempio n. 27
0
    public override void Start(RAIN.Core.AI ai)
    {
        base.Start(ai);
//        Debug.Log(ai.Body.name + " : ifGuide  ");
    }
Esempio n. 28
0
 public override void Stop(RAIN.Core.AI ai)
 {
     //enemyshoot.canShoot = true;
     base.Stop(ai);
 }
Esempio n. 29
0
 public override void Stop(RAIN.Core.AI ai)
 {
     base.Stop(ai);
 }
Esempio n. 30
0
 public override void Start(RAIN.Core.AI ai)
 {
     enemyshoot = ai.WorkingMemory.GetItem <EnemyBasic> ("enemyshoot");
     base.Start(ai);
 }