Example #1
0
 void Shoot()
 {
     // Check direction player is facing
     if (m_Player.FacingRight())
     {
         // Shoot facing right
         createShootRaycast(transform.right, m_PlayerController.GetRotation(), m_PlayerController.GetTransX(), m_PlayerController.GetTransY());
     }
     else
     {
         // Shoot facing left
         createShootRaycast(-transform.right, -m_PlayerController.GetRotation(), m_PlayerController.GetTransX(), m_PlayerController.GetTransY());
     }
 }