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"); }
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"); }