private void UpdateDirection() { Vector2 curPos = cursor.transform.position; Vector2 myPos = transform.position; direction = (curPos - myPos); direction.Normalize(); lrFliper.In(direction); }
void Update() { lrFliper.In(weaponOwner.Direction()); TimeEx.Cooldown(ref cooldown); }
void Start() { lrFliper = GetComponent <LRFliper>(); lrFliper.In(direction); }