public void Start() { GameObject Cat = GameObject.Find("MovingCat"); catmove = Cat.GetComponent <DragCat>(); //SushiNum = 0; }
void Awake() { Cat = GameObject.Find("MovingCat"); catmove = Cat.GetComponent <DragCat>(); OrderPanelTransForm = OrderPanel.transform; O1 = OrderPanel.transform.GetChild(0).gameObject; O2 = OrderPanel.transform.GetChild(1).gameObject; O3 = OrderPanel.transform.GetChild(2).gameObject; O12 = OrderPanel.transform.GetChild(3).gameObject; O13 = OrderPanel.transform.GetChild(4).gameObject; O23 = OrderPanel.transform.GetChild(5).gameObject; O123 = OrderPanel.transform.GetChild(6).gameObject; Score = 0; //GameIsOver = false; }