Esempio n. 1
0
 public void PutDown()
 {
     thisStatus = KnifeStatus.Down;
     this.gameObject.GetComponent <Animator>().runtimeAnimatorController = downController;
     this.gameObject.GetComponent <Animator>().speed = 3f;
     lightOfKnife.SetActive(true);
     inTrans = true;
     StartCoroutine("Down");
     //Debug.Log(gameObject.name + "  PutDown");
 }
Esempio n. 2
0
    public void GetUp()
    {
        thisStatus = KnifeStatus.Up;
        this.gameObject.GetComponent <Animator>().runtimeAnimatorController = upController;
        this.gameObject.GetComponent <Animator>().speed = 3f;
        lightOfKnife.SetActive(false);
        inTrans = true;
        StartCoroutine("Up");

        Debug.Log(gameObject.name + "  GetUp");
    }