// Update is called once per frame void Update() { if (passedInfo.lb && !casting && LBset) { LB.SendMessage("setStartCast"); LBset = false; casting = true; } else if (passedInfo.lt > .9 && !casting && LTset) { LT.SendMessage("setStartCast"); LTset = false; casting = true; } else if (passedInfo.rb && !casting && RBset) { RB.SendMessage("setStartCast"); RBset = false; casting = true; } else if (passedInfo.rt < -.9 && !casting && RTset) { RT.SendMessage("setStartCast"); RTset = false; casting = true; } }
// Use this for initialization void Start() { LTset = RTset = LBset = RBset = true; casting = false; RT.SendMessage("setReturnTo", (int)setReturn.rt); LB.SendMessage("setReturnTo", (int)setReturn.lb); RB.SendMessage("setReturnTo", (int)setReturn.rb); LT.SendMessage("setReturnTo", (int)setReturn.lt); }