public void OtherState(bool state) { if (state) { CurrentBaseState = BaseStates.other; } }
public void PrepareThrowState(bool state) { if (state) { CurrentBaseState = BaseStates.prepare_throw; } }
public void HighSpeedState(bool state) { if (state) { CurrentBaseState = BaseStates.high_speed; } }
public void DashState(bool state) { if (state) { CurrentBaseState = BaseStates.dash; } }
public void MoveState(bool state) { if (state) { CurrentBaseState = BaseStates.move; } }
// 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; } }
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(); } }
// Use this for initialization void Start() { baseStates = BaseStates.Instance; }