Ejemplo n.º 1
0
    public override void SetupOrganismMotor(EarthScript earth, BasicOrganismScript organismScript)
    {
        this.earth          = earth;
        this.organismScript = organismScript;
        this.animal         = organismScript.GetComponent <AnimalScript>();
        transform.parent.SetParent(earth.GetOrganismsTransform());
        Vector3 previousSize = transform.parent.localScale;

        transform.parent.localScale    = new Vector3(1, 1, 1);
        transform.parent.localPosition = new Vector3(0, .5f, 0);
        transform.localScale           = new Vector3(transform.localScale.x * previousSize.x, transform.localScale.y * previousSize.y, transform.localScale.z * previousSize.z);
    }
Ejemplo n.º 2
0
 internal void MakeEddibleOrganism(EddiblePlantOrganScript eddiblePlantOrgan, BasicOrganismScript organismScript)
 {
     organismScript.GetComponent <PlantScript>().eddibleOrgans.Add(eddiblePlantOrgan);
 }