public static void createAnim(GameObject go) { BeiSerMove anim = go.GetComponent <BeiSerMove>(); if (anim == null) { anim = go.AddComponent <BeiSerMove>(); } if (anim != null) { anim.doAnim(); } }
private void Start() { BeiSerMove.createAnim(this.gameObject); }