mirror of
https://github.com/imperialsushi/gutterball-3.git
synced 2025-06-15 05:07:42 +00:00
New Version 1.6
New 125 balls & powerups. Improved graphics.
This commit is contained in:
parent
b35433ae45
commit
71779ef7ac
9413 changed files with 193360 additions and 264803 deletions
|
@ -7,43 +7,40 @@ public class AnimationScript : MonoBehaviour
|
|||
public float time;
|
||||
public ObjectAnimation[] objects;
|
||||
|
||||
void Start ()
|
||||
void Awake ()
|
||||
{
|
||||
if (objects.Length == 0)
|
||||
{
|
||||
objects = GetComponentsInChildren<ObjectAnimation>();
|
||||
}
|
||||
objects = GetComponentsInChildren<ObjectAnimation>();
|
||||
}
|
||||
|
||||
public void IdleAnimation()
|
||||
{
|
||||
for (int i = 0; i < objects.Length; i++)
|
||||
foreach (ObjectAnimation objectAnim in objects)
|
||||
{
|
||||
objects[i].PlayIdle();
|
||||
objectAnim.PlayIdle();
|
||||
}
|
||||
}
|
||||
|
||||
public void PlayAnimation()
|
||||
{
|
||||
for (int i = 0; i < objects.Length; i++)
|
||||
foreach (ObjectAnimation objectAnim in objects)
|
||||
{
|
||||
objects[i].PlayObject();
|
||||
objectAnim.PlayObject();
|
||||
}
|
||||
}
|
||||
|
||||
public void SkipAnimation()
|
||||
{
|
||||
for (int i = 0; i < objects.Length; i++)
|
||||
foreach (ObjectAnimation objectAnim in objects)
|
||||
{
|
||||
objects[i].SkipObject();
|
||||
objectAnim.SkipObject();
|
||||
}
|
||||
}
|
||||
|
||||
public void StopAnimation()
|
||||
{
|
||||
for (int i = 0; i < objects.Length; i++)
|
||||
foreach (ObjectAnimation objectAnim in objects)
|
||||
{
|
||||
objects[i].StopObject();
|
||||
objectAnim.StopObject();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue