Exemple #1
0
 public void ResumePlaceableAnimations()
 {
     GameObject[] placeables = GameObject.FindGameObjectsWithTag("placeable");
     foreach (var placeable in placeables)
     {
         AnimatedObject animatedObject = placeable.GetComponent <AnimatedObject> ();
         animatedObject.ResumeAnimation();
     }
     animationStatus = LevelAnimationStatus.RUNNING;
 }
Exemple #2
0
 public void StopPlaceableAnimations()
 {
     GameObject[] placeables = GameObject.FindGameObjectsWithTag("placeable");
     foreach (var placeable in placeables)
     {
         AnimatedObject animatedObject = placeable.GetComponent <AnimatedObject> ();
         animatedObject.StopAnimationAndReset();
     }
     animationStatus = LevelAnimationStatus.STOPPED_OR_NONE;
 }
Exemple #3
0
 public void PausePlaceableAnimations()
 {
     GameObject[] placeables = GameObject.FindGameObjectsWithTag("placeable");
     foreach (var placeable in placeables)
     {
         AnimatedObject animatedObject = placeable.GetComponent <AnimatedObject> ();
         animatedObject.PauseAnimation();
     }
     animationStatus = LevelAnimationStatus.PAUSED;
 }
Exemple #4
0
    public void StartPlaceableAnimations()
    {
        GameObject[] placeables = GameObject.FindGameObjectsWithTag("placeable");
        foreach (var placeable in placeables)
        {
            AnimatedObject animatedObject = placeable.GetComponent <AnimatedObject> ();
//			if (animatedObject == null){
//				animatedObject = placeable.AddComponent<AnimatedObject> ();
//				animatedObject.SetData (placeable.GetComponent<Placeable> ().pData.AnimationData);
//			}
            animatedObject.StartAnimation();
        }
        animationStatus = LevelAnimationStatus.RUNNING;
    }