示例#1
0
 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);
     }
 }
    // 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);
    }
    // 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
 internal override void NotifyEnvironmentChanged(EnvironmentChanges change)
 {
     base.NotifyEnvironmentChanged(change);
     MaskShape.NotifyEnvironmentChanged(change);
     Image.NotifyEnvironmentChanged(change);
 }
示例#6
0
 internal override void NotifyEnvironmentChanged(EnvironmentChanges change)
 {
     Element?.NotifyEnvironmentChanged(change);
 }