UnityPlanet.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
	void Update()
	{
    var owner = this.gameObject.transform.FindChild("Owner");
    var targetingPlayer = this.gameObject.transform.FindChild("TargetingPlayer");
    owner.transform.rotation = this.ownerStartingRotation;
    targetingPlayer.transform.rotation = this.targetingPlayerStartingRotation;
		Vector3 parentPos = this.gameObject.transform.position;
		Vector3 scale = this.gameObject.transform.localScale;
		owner.transform.position = 
			new Vector3(parentPos.x + this.ownerRelPos.x * scale.x,
						parentPos.y + this.ownerRelPos.y * scale.y,
						parentPos.z + this.ownerRelPos.z * scale.z);
    targetingPlayer.transform.position =
      new Vector3(parentPos.x + this.targetingPlayerRelPos.x * scale.x,
            parentPos.y + this.targetingPlayerRelPos.y * scale.y,
            parentPos.z + this.targetingPlayerRelPos.z * scale.z);
	}