Esempio n. 1
0
 void Awake()
 {
     m_Rigidbody2D = GetComponent <Rigidbody2D>();
     m_Bounds      = GameObject.FindGameObjectWithTag("Bounds").GetComponent <ScreenBounds>();
     m_Health      = GetComponent <PlayerHealth>();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MoveRight"/> class.
 /// </summary>
 /// <param name="bounds">Bounds.</param>
 public MoveRight(ScreenBounds bounds)
 {
     m_Bounds = bounds;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MoveLeft"/> class.
 /// </summary>
 /// <param name="bounds">Bounds.</param>
 public MoveLeft(ScreenBounds bounds)
 {
     m_Bounds = bounds;
 }
Esempio n. 4
0
 void Awake()
 {
     m_Bounds = GameObject.FindGameObjectWithTag("Bounds").GetComponent <ScreenBounds>();
 }