void GrowPlant() { if (vineTimer <= 0) { vineTimer = vineRequired; GameObject vine = Instantiate(vinePrefab, transform.position, transform.rotation); vine.GetComponent <ActionCtl>().RunActionForever(ActionCtl.SizeBy(0.1f, 0, 0.4f)); vine.transform.SetParent(GameController.controller.weaponesSet); } }
public void No() { if (!NoShowed) { NoShowed = true; NoText.gameObject.SetActive(true); NoText.transform.localScale = new Vector3(0.1f, 0.1f, 1); NoText.RunAction(ActionCtl.ScaleTo(0.3f, 0.3f, 0.3f), ActionCtl.CallFunc(() => { NoShowed = false; NoText.gameObject.SetActive(false); return(true); })); } }