Ejemplo n.º 1
0
 public new void Start()
 {
     base.Start();
     planterReg = FindObjectOfType <PlanterRegistry>();
     Debug.Assert(planterReg != null);
     planterReg.RegisterPlanter(this);
     fruitReg = FindObjectOfType <FruitRegistry>();
     Debug.Assert(fruitReg != null);
     fruitParent = fruitReg.GetFruitParent();
     Debug.Assert(fruitParent != null);
     particleSystem = gameObject.GetComponent <ParticleSystem>();
     Debug.Assert(particleSystem);
 }