コード例 #1
0
 public override void PhysicsProcess(float delta)
 {
     treeSprite.Scale = new Vector2((treeState.treeGrowth / 100f) * finalScale.x, (treeState.treeGrowth / 100f) * finalScale.y);
     transparencyCollisionShape.GetParent <Node2D>().Scale = new Vector2((treeState.treeGrowth / 100f) * finalScale.x, (treeState.treeGrowth / 100f) * finalScale.y);
 }