Пример #1
0
 public void OtherState(bool state)
 {
     if (state)
     {
         CurrentBaseState = BaseStates.other;
     }
 }
Пример #2
0
 public void PrepareThrowState(bool state)
 {
     if (state)
     {
         CurrentBaseState = BaseStates.prepare_throw;
     }
 }
Пример #3
0
 public void HighSpeedState(bool state)
 {
     if (state)
     {
         CurrentBaseState = BaseStates.high_speed;
     }
 }
Пример #4
0
 public void DashState(bool state)
 {
     if (state)
     {
         CurrentBaseState = BaseStates.dash;
     }
 }
Пример #5
0
 public void MoveState(bool state)
 {
     if (state)
     {
         CurrentBaseState = BaseStates.move;
     }
 }
Пример #6
0
    // Use this for initialization
    void Start()
    {
        baseStates = BaseStates.Instance;
        mainCamera = GameObject.Find("Main Camera");

        LOGO_EXISTS = logoImage != null;

        if (LOGO_EXISTS)
        {
            color           = logoImage.color;
            color.a         = DEFAULT_ALPHA;
            logoImage.color = color;
        }
    }
Пример #7
0
    private void Awake()
    {
        BaseStates baseStates = BaseStates.Instance;

        if (baseStates.Sharing)
        {
            string SharingServerAddress = baseStates.SharingAddress;
            Sharing.GetComponent <SharingStage>().ServerAddress = SharingServerAddress;
            //SpectatorViewManager.GetComponent<SpectatorViewManager>().SharingServiceIP = SharingServerAddress;
        }
        else
        {
            DeActiveSharings();
        }
    }
Пример #8
0
 // Use this for initialization
 void Start()
 {
     baseStates = BaseStates.Instance;
 }