void Start() { this.directionalColliders = this.transform.GetComponentInChildren <DirectionalColliders>(); this.AlignToGrid(); }
// Start is called before the first frame update void Start() { Transform parentTransform = this.transform.parent.gameObject.GetComponent <Transform>(); this.directionalColliders = parentTransform.parent.gameObject.GetComponent <DirectionalColliders>(); }