コード例 #1
0
ファイル: BeginState.cs プロジェクト: remicdv/soccer_sim
    private BeginState()
    {
        if (_instance != null)
        {
            return;
        }

        _instance = this;
    }
コード例 #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);
 }
コード例 #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);
        }
コード例 #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);
        }
    }
コード例 #5
0
ファイル: StateManager.cs プロジェクト: aclouse/IntScripting
 void Start()
 {
     activeState = new BeginState();
     Debug.Log("This object is of type: " + activeState);
 }
コード例 #6
0
ファイル: StateManager.cs プロジェクト: Nyigan/IntScript-FL15
 // Use this for initialization
 void Start()
 {
     activeState = new BeginState("Brian", 26, "professor");
     secondState = new BeginState("Dumbledore", 150, "Headmaster");
     Debug.Log("blah blah blah");
 }