Patrol.Detecta C# (CSharp) Method

Detecta() public method

public Detecta ( ) : void
return void
    void Detecta()
    {
        Debug.DrawRay(myTransform.position,myTransform.forward * 10,Color.red); // Found ya !
        pulseTime -= Time.deltaTime;

        if(pulseTime < 0){
        status = eAlertLevel.PATROL;
        GameObject.Destroy(existingAlert);
        }
    }