예제 #1
0
    public bool isTel   = false;        // 用于标记特殊物体 电话

    public virtual void init(StuffEventSystem eventSystem, HumanSystem player)
    {
        _player      = player;
        _eventSystem = eventSystem;
        _timer       = TimeLine.getInstance();
        _eventState  = EventState.Stop;
        _audio       = AudioSystem.getInstance();
        _tips        = TipsManager.getInstance();
    }
예제 #2
0
    public void TurnGame(HumanSystem player)
    {
        pointer.transform.Rotate(Vector3.forward);
        float z = Mathf.Abs(pointer.transform.rotation.z % 360);

        if (Input.GetMouseButtonDown(0))
        {
            if (z >= 0.9 || z <= 1)
            {
                player.heart += 33;
                pointer.transform.eulerAngles = new Vector3(0, 0, UnityEngine.Random.Range(-1, 1));
                player.state = HumanState.isIdle;
                _tips.setTips("妻子心情变好了");
            }
            turnTable.gameObject.transform.localPosition = new Vector3(99999, 0, 0);
            player.isTurnGame = false;
        }
    }
예제 #3
0
 public override void init(StuffEventSystem eventSystem, HumanSystem player)
 {
     base.init(eventSystem, player);
 }
예제 #4
0
 public override void init(StuffEventSystem eventSystem, HumanSystem player)
 {
     base.init(eventSystem, player);
     _waitingTime = waitingTime;
 }
예제 #5
0
 public void startTurnGame(HumanSystem player)
 {
     player.isTurnGame = true;
     turnTable.transform.localPosition = new Vector3(-440, -255, 0);
 }
예제 #6
0
 public SolveEventSystem(HumanSystem person)
 {
     _player      = person;
     _playerStuff = person.getStuffComp();
     _tips        = TipsManager.getInstance();
 }
예제 #7
0
 public MoveController(HumanSystem person)
 {
     _person = person;
 }
예제 #8
0
 public HumanAnimation(HumanSystem person)
 {
     _person        = person;
     animator       = _person.gameObject.GetComponent <Animator>();
     animator.speed = 0;
 }