public void Spawn() { gameObject.SetActive(true); UpdatePos(); if (TheField.isBonusLevel) { mode = GirlMode.Ready; animator.Play("Ready2"); } }
public void ChangeState(GirlMode pMode) { mode = pMode; Debug.Log("new mode " + pMode.ToString()); animator.Play(pMode.ToString()); }
protected virtual void Awake() { animator = GetComponent <Animator> (); rt = GetComponent <RectTransform> (); mode = GirlMode.Passive; }