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(); }
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; } }
public override void init(StuffEventSystem eventSystem, HumanSystem player) { base.init(eventSystem, player); }
public override void init(StuffEventSystem eventSystem, HumanSystem player) { base.init(eventSystem, player); _waitingTime = waitingTime; }
public void startTurnGame(HumanSystem player) { player.isTurnGame = true; turnTable.transform.localPosition = new Vector3(-440, -255, 0); }
public SolveEventSystem(HumanSystem person) { _player = person; _playerStuff = person.getStuffComp(); _tips = TipsManager.getInstance(); }
public MoveController(HumanSystem person) { _person = person; }
public HumanAnimation(HumanSystem person) { _person = person; animator = _person.gameObject.GetComponent <Animator>(); animator.speed = 0; }