コード例 #1
0
ファイル: UserSocket.cs プロジェクト: stuart2w/SAW
 internal override void NotifyEnvironmentChanged(EnvironmentChanges change)
 {
     if ((change & EnvironmentChanges.ParentReassigned) > 0)
     {
         m_Bounds = RectangleF.Empty;                 // bounds collapses if parent is group
     }
 }
コード例 #2
0
 internal override void NotifyEnvironmentChanged(EnvironmentChanges change)
 {
     base.NotifyEnvironmentChanged(change);
     foreach (Shape shape in Contents)
     {
         shape.NotifyEnvironmentChanged(change);
     }
 }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        //Initializes on start up to listen for messages
        //make sure this game object has both UDPPackIO and OSC script attached
        stackOfRates = new float[500];

        //The scripts that will do the changes
        playerChanges = GameObject.FindWithTag("PlayerChange").GetComponent <PlayerChanges>();
        envChanges    = GameObject.FindWithTag("EnvChange").GetComponent <EnvironmentChanges>();

        UDPPacketIO udp = GetComponent <UDPPacketIO>();

        udp.init(RemoteIP, SendToPort, ListenerPort);
        handler = GetComponent <Osc>();
        handler.init(udp);
        handler.SetAllMessageHandler(AllMessageHandler);
    }
コード例 #4
0
    // Use this for initialization
    void Start()
    {
        //Initializes on start up to listen for messages
        //make sure this game object has both UDPPackIO and OSC script attached
        stackOfRates = new float[500];

        //The scripts that will do the changes
        playerChanges = GameObject.FindWithTag("PlayerChange").GetComponent<PlayerChanges>();
        envChanges = GameObject.FindWithTag("EnvChange").GetComponent<EnvironmentChanges>();

        UDPPacketIO udp = GetComponent<UDPPacketIO>();
        udp.init(RemoteIP, SendToPort, ListenerPort);
        handler = GetComponent<Osc>();
        handler.init(udp);
        handler.SetAllMessageHandler(AllMessageHandler);
    }
コード例 #5
0
ファイル: MaskedImage.cs プロジェクト: stuart2w/SAW
 internal override void NotifyEnvironmentChanged(EnvironmentChanges change)
 {
     base.NotifyEnvironmentChanged(change);
     MaskShape.NotifyEnvironmentChanged(change);
     Image.NotifyEnvironmentChanged(change);
 }
コード例 #6
0
ファイル: Scriptable.cs プロジェクト: stuart2w/SAW
 internal override void NotifyEnvironmentChanged(EnvironmentChanges change)
 {
     Element?.NotifyEnvironmentChanged(change);
 }