Beispiel #1
0
 private void Start()
 {
     rb            = GetComponent <Rigidbody2D>();
     checkGrounded = GetComponentInChildren <CheckGroundedScript>();
     button        = null;
     boxtaker      = transform.Find("cosmonaut").Find("boxtaker");
 }
Beispiel #2
0
 void Start()
 {
     cosmonaut            = transform.Find("cosmonaut").transform;
     actionScript         = transform.GetComponent <ActionScript>();
     history              = new List <HistoryElement>();
     startPosition        = transform.position;
     rb                   = GetComponent <Rigidbody2D>();
     checkGrounded        = GetComponentInChildren <CheckGroundedScript>();
     checkCollidersScript = GetComponentInChildren <CheckCollidersScript>();
     remPoint             = GameObject.FindGameObjectWithTag("RememberPoint").GetComponent <rememberPointScript>();
     animator             = GetComponentInChildren <Animator>();
 }