private BeginState() { if (_instance != null) { return; } _instance = this; }
void Start() { prof = Profession.get((JobType)GamePlayer.Instance.GetIprop(PropertyType.PT_Profession), GamePlayer.Instance.GetIprop(PropertyType.PT_ProfessionLevel)); palyerLearningLose = SkillLose; palyerLearningOK = TishiMwssage; UIManager.SetButtonEventHandler(BeginBtn.gameObject, EnumButtonEvent.OnClick, OnClickBegin, 0, 0); ProfessionLabel.text = prof.jobName_; SetBeginState = BeginBtnState; GuideManager.Instance.RegistGuideAim(BeginBtn.gameObject, GuideAimType.GAT_LearnSkillBtn); }
public override int GetHashCode() { const int prime = 123; int hash = prime; hash += BeginState.GetHashCode(); hash *= prime; hash += EndState.GetHashCode(); hash *= prime; hash += Condition.GetHashCode(); return(hash); }
void Ter() { if (changeState) { beginMove = BeginState.MoveDown; this.transform.position = Vector3.Lerp(transform.position, new Vector3(0, -1, 0), Time.deltaTime * speed); } else { beginMove = BeginState.MoveUp; this.transform.position = Vector3.Lerp(transform.position, new Vector3(0, 3, 0), Time.deltaTime * speed); } }
void Start() { activeState = new BeginState(); Debug.Log("This object is of type: " + activeState); }
// Use this for initialization void Start() { activeState = new BeginState("Brian", 26, "professor"); secondState = new BeginState("Dumbledore", 150, "Headmaster"); Debug.Log("blah blah blah"); }