Пример #1
0
 void Start()
 {
     MF     = GameObject.Find("GameManager").GetComponent <MouseFinder> ();
     TL     = GameObject.Find("GameManager").GetComponent <TestLevel> ();
     rb     = gameObject.GetComponent <Rigidbody2D> ();
     Char   = gameObject.GetComponent <Character> ();
     OriPos = new Vector2(0, 0);
 }
Пример #2
0
 void Start()
 {
     MF             = GameObject.Find("GameManager").GetComponent <MouseFinder> ();
     TL             = GameObject.Find("GameManager").GetComponent <TestLevel> ();
     rb             = gameObject.GetComponent <Rigidbody2D> ();
     Char           = gameObject.GetComponent <Character> ();
     RCc            = gameObject.GetComponent <RayCastController> ();
     OriPos         = new Vector2(0, 0);
     rightBeingUsed = false;
     powerVal       = 7;
     isIncreasing   = false;
     Char.canJump   = true;
     lastPos        = Vector2.zero;
 }