public void Update() { if (!Application.isPlaying) { lossyScale = FPVector.Abs(transform.lossyScale.ToFPVector()); } }
/** * @brief Creates a new {@link FPRigidBody} when there is no one attached to this GameObject. **/ public void Awake() { FPTransform = this.GetComponent <FPTransform2D>(); FPRigidBody = this.GetComponent <FPRigidBody2D>(); if (lossyScale == FPVector.one) { lossyScale = FPVector.Abs(transform.localScale.ToFPVector()); } }