Exemplo n.º 1
0
    public float LerpSize()
    {
        float result = 0.9f;

        MissionDialog.STAMP_STEP sTAMP_STEP = step;
        if (sTAMP_STEP == MissionDialog.STAMP_STEP.STAMP_OUT)
        {
            result = Mathf.Lerp(1.4f, 1.5f, deltaTime / 0.3f);
        }
        return(result);
    }
Exemplo n.º 2
0
    public bool Update(AudioClip kwang)
    {
        if (step == MissionDialog.STAMP_STEP.STAMP_NONE)
        {
            return(false);
        }
        deltaTime += Time.deltaTime;
        switch (step)
        {
        case MissionDialog.STAMP_STEP.STAMP_BEGIN:
            step = MissionDialog.STAMP_STEP.STAMP_OUT;
            break;

        case MissionDialog.STAMP_STEP.STAMP_OUT:
            if (deltaTime > 0.3f)
            {
                deltaTime = 0f;
                step      = MissionDialog.STAMP_STEP.STAMP_IN;
            }
            break;

        case MissionDialog.STAMP_STEP.STAMP_IN:
            if (deltaTime > 0.2f)
            {
                GlobalVars.Instance.PlayOneShot(kwang);
                deltaTime = 0f;
                step      = MissionDialog.STAMP_STEP.STAMP_WAIT;
            }
            break;

        case MissionDialog.STAMP_STEP.STAMP_WAIT:
            if (deltaTime > 0.2f)
            {
                deltaTime = 0f;
                step      = MissionDialog.STAMP_STEP.STAMP_NONE;
            }
            break;
        }
        return(true);
    }
Exemplo n.º 3
0
 public Stamp(MissionDialog.STAMP_STEP stampStep)
 {
     step      = stampStep;
     deltaTime = 0f;
 }