예제 #1
0
    /// <summary>
    /// Analize this instance.
    /// </summary>
    void Analize()
    {
        agentRigidbody.velocity = Vector2.zero;

        //AJOUT D'ANIM D'ANALISE

        time += Time.deltaTime;

        if(time > timeToAnalize){
            if(typeResidus == Type.TypeResidus.BACTERIA){
                typeLT = Type.TypeLT.CYTOTOXIQUE;
            }else if(typeResidus == Type.TypeResidus.VIRUS){
                typeLT = Type.TypeLT.AUXILIAIRE;
            }

            time = 0f;
            agent.state = Agent.WIGGLE;
        }
    }
예제 #2
0
    void Start()
    {
        typeLT = Type.TypeLT.NONE;
        typeResidus = Type.TypeResidus.NONE;
        residus = false;

        time = 0f;
    }