Exemplo n.º 1
0
 void Start()
 {
     ghostAnimator = GetComponent <GhostAnimator> ();
     ObjectPool[] bulletPools = GameObject.Find("BulletPool").GetComponents <ObjectPool> ();
     sniperBulletPool     = bulletPools [0];
     submachineBulletPool = bulletPools [1];
 }
Exemplo n.º 2
0
 public void PlayGhostAnimaiton(GhostAnimator param)
 {
     animator.Play(param.ToString());
 }
Exemplo n.º 3
0
 public void SetGhostAnimation(GhostAnimator anim)
 {
     animator.SetInteger(_Ghost, (int)anim);
 }