Exemple #1
0
 public new void Start()
 {
     base.Start();
     Debug.Assert(seed != null);
     seedReg = FindObjectOfType <SeedRegistry>();
     Debug.Assert(seedReg != null);
     seedParent = seedReg.GetSeedParent();
     Debug.Assert(seedParent != null);
 }
Exemple #2
0
    public new void Start()
    {
        base.Start();

        //Set the Incect to a Random Height
        Vector3 curPos = transform.position;

        curPos.y           = Random.Range(minFlightHeight, maxFlightHeight);
        transform.position = curPos;

        //Decide if the Insect starts flying up or down
        up = (Random.value > 0.5f);

        planterReg = FindObjectOfType <PlanterRegistry>();
        SearchNewTarget();

        seedReg = FindObjectOfType <SeedRegistry>();
    }