Esempio n. 1
0
    private BeginState()
    {
        if (_instance != null)
        {
            return;
        }

        _instance = this;
    }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
    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);
        }
    }
Esempio n. 5
0
 void Start()
 {
     activeState = new BeginState();
     Debug.Log("This object is of type: " + activeState);
 }
Esempio n. 6
0
 // Use this for initialization
 void Start()
 {
     activeState = new BeginState("Brian", 26, "professor");
     secondState = new BeginState("Dumbledore", 150, "Headmaster");
     Debug.Log("blah blah blah");
 }