示例#1
0
 void Awake()
 {
     m_Rigidbody2D = GetComponent <Rigidbody2D>();
     m_Bounds      = GameObject.FindGameObjectWithTag("Bounds").GetComponent <ScreenBounds>();
     m_Health      = GetComponent <PlayerHealth>();
 }
示例#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;
 }
示例#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;
 }
示例#4
0
 void Awake()
 {
     m_Bounds = GameObject.FindGameObjectWithTag("Bounds").GetComponent <ScreenBounds>();
 }