Coins.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
    void Update()
    {
        #if UNITY_EDITOR
        if (Input.GetKeyUp(KeyCode.C))
        {
            total += 100;
        }
        #endif
    }

Usage Example

Example #1
0
 public void Update(GameTime gameTime, CameraOperator cameraOperator, World world)
 {
     Player.Update(gameTime);
     Coins.Update(gameTime, cameraOperator, this, world);
     Slimes.Update(gameTime);
 }