Esempio n. 1
0
 public override void Open()
 {
     if (animate != null)
     {
         animate.setAnimation("Open");
     }
 }
Esempio n. 2
0
    public static void GiatDien(Transform transform, Vector3 position, float timeToDestroy)
    {
        AnimationQ gd = Instantiate(giatDien, position, Quaternion.identity, transform);

        gd.setAnimation(Random.Range(0, 3).ToString());
        Destroy(gd.gameObject, timeToDestroy);
    }