Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        rb                    = GetComponent <Rigidbody>();
        mainNormals           = new Vector3[2];
        voxelSideNormals      = new HashSet <Vector3>();
        actions               = GetComponent <CritterActions>();
        actions.autoOrientate = false;

        //transform.GetChild(0).GetChild(0).gameObject.GetComponent<CritterAnchor>().gravity = this;
    }
Beispiel #2
0
 void Start()
 {
     actions = GetComponent <CritterActions>();
     transform.localScale *= size;
 }