Esempio n. 1
0
    void Start()
    {
        this.directionalColliders = this.transform.GetComponentInChildren <DirectionalColliders>();

        this.AlignToGrid();
    }
Esempio n. 2
0
    // 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>();
    }