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