Exemplo n.º 1
0
 public void setPrice(int index, int price, PlantControlScript plant)
 {
     this.index  = index;
     this.price  = price;
     plantScript = plant;
     common      = plantScript.farmCenter.common;
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     startPosition = Input.mousePosition;
     stopPosition  = Input.mousePosition;
     neoPosition   = new Vector2(-1, -1);
     curStep       = 0;
     maxStep       = 0;
     common        = GameObject.FindGameObjectWithTag("CommonObject").GetComponent <Transform>();
     audiocontroll = GameObject.Find("AudioControl");
     common1       = common.GetComponent <CommonObjectScript>();
     //panelPlant = transform.parent.FindChild("PanelPlant").gameObject;
     panelpla = panelPlant.GetComponent <UIPanel>();
     plant    = panelPlant.GetComponent <PlantControlScript>();
 }