Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     lightSet = transform.FindChild("Lights");
     if (directionalTargetTransform == null)
         directionalTargetTransform = transform.FindChild("WorldCenter");
     fixedUpdateFunction+=UpdateStub;
     lightSet.rotation = Quaternion.LookRotation(directionalTargetTransform.position - lightSet.position);
 }
Exemplo n.º 2
0
    private void updateFromWhiteToGoL()
    {
        if (tweener == null) return;
        var value = tweener.UpdateValue(Time.deltaTime);

        GoFRender.TextureLerp = value;

        if (value >= 1)
        {
            update = null;
            tweener = null;
        }
    }
Exemplo n.º 3
0
    private void updateFromWhiteToBlack()
    {
        if (tweener == null) return;
        var value = tweener.UpdateValue(Time.deltaTime);

        GoFRender.InverseColor = value;

        if (value <= 0) {
            update = null;
            tweener = null;
        }
    }
Exemplo n.º 4
0
    private void updateFromBlackToWhite()
    {
        if (tweener == null) return;
        var value = tweener.UpdateValue(Time.deltaTime);

        GoFRender.InverseColor = value;
        GoFRender.Saturation = SaturationUnderSlide + (1 - SaturationUnderSlide)*(1-value);

        if (value >= 1)
        {
            update = null;
            tweener = null;
        }
    }
Exemplo n.º 5
0
 public void SetMobile()
 {
     fixedUpdateFunction+=UpdateWithRotation;
 }
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     Update_CurrentFunc = Update_DetectModeStart;
     hexMap             = GameObject.FindObjectOfType <HexMap>();
     lineRenderer       = transform.GetComponentInChildren <LineRenderer>();
 }
Exemplo n.º 7
0
 public abstract Task <TResult> PerformTransaction <TResult>(UpdateFunc <TResult, T> updateFunc) where TResult : struct;
 public void CancelUpdateFunc()
 {
     Update_CurrentFunc = Update_DetectModeStart;
 }
 void Start()
 {
     Update_CurrentFunc = Update_DetectModeStart;
 }
 public void StartCityView()
 {
     Update_CurrentFunc = Update_CityView;
 }