void Start() { laserLastUse = Time.time; subAmmoLastUse = Time.time; cRLastUse = Time.time; trip = GetComponent <TripodController> (); closeRangeBarrel = transform.Find("hips/CloseRangeBarrel").gameObject; }
// Start is called before the first frame update void Start() { UDPPacketIO udp = (UDPPacketIO)this.GetComponent("UDPPacketIO"); udp.init(RemoteHost, RemotePort, ListenerPort); handler = (Osc)this.GetComponent("Osc"); handler.init(udp); //Tell Unity to call function Example1 when message /wek/outputs arrives //handler.SetAddressHandler("/wek/outputs", oscCallback); Debug.Log("OSC Running"); TripodController TripodController = GetComponent <TripodController>(); TripodController.OnTripodViewUpdate += OnTripodViewUpdate; }
public TripodExploration(IA ia) : base(ia) { trip = (TripodController)ia; }
public TripodLaserAttack(IA ia) : base(ia) { trip = (TripodController)ia; }
public TripodSubAmmoAttack(IA ia) : base(ia) { trip = (TripodController)ia; }
public TripodCloseRange(IA ia) : base(ia) { trip = (TripodController)ia; }