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