public override void Open() { if (animate != null) { animate.setAnimation("Open"); } }
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); }