Exemplo n.º 1
0
 public SinkingState(AiControl ai)
 {
     _ai             = ai;
     _startTime      = Time.time;
     _initialDensity = _ai._Buoyancy._Density;
     _initialDrag    = _ai._Buoyancy._DragCoefficient;
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     rb = GetComponent<Rigidbody2D>();
     AiController = GameObject.Find("EnemyController");
     AiControlScript = AiController.GetComponent<AiControl>();
     mainThrust.Stop();
     steerThrustL.Stop();
     steerThrustR.Stop();
 }
Exemplo n.º 3
0
 void Start()
 {
     move = GetComponent <AiControl>();
 }
Exemplo n.º 4
0
 protected override void CreateControl()
 {
     Logger.Verbose($"AiBike.CreateControl()");
     control = new AiControl();
 }
Exemplo n.º 5
0
 protected override void CreateControl()
 {
     control = new AiControl();
 }
Exemplo n.º 6
0
    void DealDamage()
    {
        AiControl enemyScript = activeEnemy.GetComponent <AiControl>();

        enemyScript.health -= damage;
    }
Exemplo n.º 7
0
 public CircleState(AiControl ai, AiHelper h)
 {
     _ai = ai;
     _h  = h;
 }
Exemplo n.º 8
0
 public PursueState(AiControl ai, AiHelper h)
 {
     _ai = ai;
     _h  = h;
 }