Clouds.Update C# (CSharp) 메소드

Update() 공개 메소드

public Update ( ) : void
리턴 void
	void Update () {
		transform.position += Vector3.right * speed;

		timeLeft -= Time.deltaTime;
		if ( timeLeft < 0 )
		{
			animationOver = true;
			timeLeft = newTime;
		}
		if(animationOver == true){
			transform.position = startPosition;
			animationOver = false;
		}

	}
}

Usage Example

예제 #1
0
        public void Update(GameTime gameTime)
        {
            Time.Update(gameTime);

            ambientalLightShader.Update(Time.Value);

            sky.Update(Time);
            stars.Update(Time);
            moon.Update(Time);
            sun.Update(Time);

            clouds.Update(Lights);
        }
All Usage Examples Of Clouds::Update