Esempio n. 1
0
 public Choice(EMOTION _emotion, string _text, CallbackEvent _callback, Vector3 _position)
 {
     this.emotion  = _emotion;
     this.text     = _text;
     this.callback = _callback;
     this.position = _position;
 }
Esempio n. 2
0
 public void Init(EMOTION _emotion, Vector3 _targetPosition)
 {
     this.image.sprite         = this.sprites[(int)_emotion];
     this.targetPosition       = Camera.main.WorldToScreenPoint(_targetPosition);
     this.transform.localScale = Vector3.zero;
     this.transform.DOScaleY(1f, 0.2f).SetEase(Ease.OutBack);
     this.transform.DOScaleX(1f, 0.2f).SetDelay(0.05f).SetEase(Ease.OutBack);
 }
Esempio n. 3
0
    private void ChangeEmotion()
    {
        if (currentHappiness > 66)
        {
            emotion            = EMOTION.Happy;
            happinessSubstract = 0f;
        }
        else if (currentHappiness > 33 && currentHappiness <= 66)
        {
            emotion            = EMOTION.Irritated;
            happinessSubstract = 0.5f;
        }
        else if (currentHappiness < 33)
        {
            emotion            = EMOTION.Angry;
            happinessSubstract = 1.25f;
        }

        emotionImage.sprite = emotionSprites[(int)emotion];
    }
Esempio n. 4
0
 void SetDefault(EMOTION e)
 {
     targetEmotion[(int)e] = (byte)Default;
 }
Esempio n. 5
0
 void SetAtoB(EMOTION a, EMOTION b)
 {
     targetEmotion[(int)a] = (byte)b;
 }
Esempio n. 6
0
 void SetDefaultEmotion(EMOTION e)
 {
     Default = e;
 }