Esempio n. 1
0
 private void Awake()
 {
     Reference        = this;
     rb               = GetComponent <Rigidbody2D>();
     PlayerController = GetComponent <PlayerController>();
     CubeletManager   = GetComponent <CubeletManager>();
     PlayerGrid       = GetComponentInChildren <PlayerGrid>();
     PlayerGrid.DeactivateGrid();
 }
Esempio n. 2
0
 private void Start()
 {
     col = GetComponent <BoxCollider2D>();
     CubeletManager.AddCubelet(this);
 }