コード例 #1
0
 public static void OnShapeRotateStart(Shape shape)
 {
     SignalsUtils.DestroySignalsInCell(shape.Xindex, shape.Yindex);
     if (CurrentGameMode != GameMode.InvokeAdjuster)
     {
         ConnectorsManager.CheckAllConnections();
     }
 }
コード例 #2
0
    private void OnTriggerEnter(Collider c) //проверка, пришел ли сигнал
    {
        if (IsStartConnector)
        {
            return;
        }

        ConnectorsManager.CheckAllConnections();
        if (ConnectorsManager.IsConnectedAtLastChecking(this))
        {
            SwitchToOn();
        }
    }