Beispiel #1
0
    public static void createAnim(GameObject go)
    {
        BeiSerMove anim = go.GetComponent <BeiSerMove>();

        if (anim == null)
        {
            anim = go.AddComponent <BeiSerMove>();
        }
        if (anim != null)
        {
            anim.doAnim();
        }
    }
Beispiel #2
0
 private void Start()
 {
     BeiSerMove.createAnim(this.gameObject);
 }