Exemplo n.º 1
0
        public void SetConnector(ComponentConnector connector)
        {
            if (this.connector != null)
            {
                throw new Exception("Connector already seted");
            }

            this.connector = connector;
        }
Exemplo n.º 2
0
 public void SetMaster(ShipComponentBehaviour master)
 {
     connector = new ComponentConnector();
     item.SetConnector(connector, master);
 }
Exemplo n.º 3
0
 public void SetConnector(ComponentConnector connector, ShipComponentBehaviour shipComponent)
 {
     connector.SetComponent(this, GetActivities(shipComponent), () => OnDisabled(shipComponent), () => OnEnabled(shipComponent));
 }