Пример #1
0
    private void UpdateDirection()
    {
        Vector2 curPos = cursor.transform.position;
        Vector2 myPos  = transform.position;

        direction = (curPos - myPos);
        direction.Normalize();

        lrFliper.In(direction);
    }
Пример #2
0
    void Update()
    {
        lrFliper.In(weaponOwner.Direction());

        TimeEx.Cooldown(ref cooldown);
    }
 void Start()
 {
     lrFliper = GetComponent <LRFliper>();
     lrFliper.In(direction);
 }