コード例 #1
0
 void Start()
 {
     laserLastUse     = Time.time;
     subAmmoLastUse   = Time.time;
     cRLastUse        = Time.time;
     trip             = GetComponent <TripodController> ();
     closeRangeBarrel = transform.Find("hips/CloseRangeBarrel").gameObject;
 }
コード例 #2
0
    // 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;
    }
コード例 #3
0
 public TripodExploration(IA ia) : base(ia)
 {
     trip = (TripodController)ia;
 }
コード例 #4
0
 public TripodLaserAttack(IA ia) : base(ia)
 {
     trip = (TripodController)ia;
 }
コード例 #5
0
 public TripodSubAmmoAttack(IA ia) : base(ia)
 {
     trip = (TripodController)ia;
 }
コード例 #6
0
 public TripodCloseRange(IA ia) : base(ia)
 {
     trip = (TripodController)ia;
 }