Beispiel #1
0
 void Start()
 {
     Celion = FindObjectOfType <celion_Player>();
     if (Celion.transform.localScale.x < 0) //SWITCH FOR MOUSE
     {
         gunBulletSpeed = -gunBulletSpeed;
     }
 }
Beispiel #2
0
 void Start()
 {
     Celion = FindObjectOfType <celion_Player>();
     if (Celion.transform.localScale.x < 0)//SWITCH FOR MOUSE
     {
         fireBulletSpeed = -fireBulletSpeed;
         GetComponent <SpriteRenderer>().flipX = true;
     }
     if (Celion.transform.localScale.x > 0)//SWITCH FOR MOUSE
     {
         GetComponent <SpriteRenderer>().flipX = false;
     }
 }
Beispiel #3
0
 void Start()
 {
     celion = otherObjects.GetComponent <celion_Player>();
 }
Beispiel #4
0
 void Start()
 {
     enemyHealthAnim = otherObject.GetComponent <Animator>();
     celion          = otherObjects.GetComponent <celion_Player>();
 }
 void Start()
 {
     celion             = otherObjects.GetComponent <celion_Player>();
     celioneRigidBody2D = gameObject.GetComponent <Rigidbody2D>(); //initiates rigidbody
     anim = gameObject.GetComponent <Animator>();                  //initiates animator
 }