public override void Init()
 {
     //Debug.Log("IDLE 2 Init");
     m_stateId         = FSMStateIDs.StateIds.FSM_Idle2;
     CharacterAgent    = SMOwner.GetComponent <Agent>();
     CharacterRenderer = SMOwner.GetComponent <MeshRenderer>();
 }
示例#2
0
 public override void Init()
 {
     //Debug.Log("CHASE Init");
     m_stateId         = FSMStateIDs.StateIds.FSM_Chase;
     CharacterAgent    = SMOwner.GetComponent <Agent>();
     CharacterRenderer = SMOwner.GetComponent <MeshRenderer>();
     Target            = SMOwner.Target;
 }
示例#3
0
 public override void Init()
 {
     //Debug.Log("Freeze Init");
     m_stateId         = FSMStateIDs.StateIds.FSM_PlayerChase;
     CharacterAgent    = SMOwner.GetComponent <Agent>();
     CharacterRenderer = SMOwner.GetComponent <MeshRenderer>();
     Cam = SMOwner.Cam;
 }
示例#4
0
 public override void Init()
 {
     m_stateId         = FSMStateIDs.StateIds.FSM_PlayerIdle;
     CharacterAgent    = SMOwner.GetComponent <Agent>();
     CharacterRenderer = SMOwner.GetComponent <MeshRenderer>();
     Cam = SMOwner.Cam;
     //Debug.Log("IDLE Init");
 }
示例#5
0
 public override void Init()
 {
     //Debug.Log("Freeze Init");
     m_stateId         = FSMStateIDs.StateIds.FSM_Freeze;
     CharacterAgent    = SMOwner.GetComponent <Agent>();
     CharacterRenderer = SMOwner.GetComponent <MeshRenderer>();
     FTM = FindObjectOfType <FreezeTagManager>();
 }
示例#6
0
    public override void Init()
    {
        //Debug.Log("Freeze Init");
        m_stateId         = FSMStateIDs.StateIds.FSM_SumoPlayer;
        CharacterAgent    = SMOwner.GetComponent <Agent>();
        CharacterRenderer = SMOwner.GetComponent <MeshRenderer>();

        SumoM = FindObjectOfType <SumoManager>();
        RB    = SMOwner.GetComponent <Rigidbody>();
    }
示例#7
0
 public override void Init()
 {
     //Debug.Log("Init");
     m_stateId         = FSMStateIDs.StateIds.FSM_BasePlayer;
     CharacterAgent    = SMOwner.GetComponent <Agent>();
     CharacterRenderer = SMOwner.GetComponent <MeshRenderer>();
     Cam             = SMOwner.Cam;
     Feet            = SMOwner.GetFeet();
     Physics.gravity = new Vector3(0, -9.81f * 1, 0);
 }
示例#8
0
 public override void Init()
 {
     //Debug.Log("FLEE Init");
     m_stateId         = FSMStateIDs.StateIds.FSM_TagFlee;
     CharacterAgent    = SMOwner.GetComponent <Agent>();
     CharacterRenderer = SMOwner.GetComponent <MeshRenderer>();
     Target            = SMOwner.Target;
     RightEye          = SMOwner.RightEye;
     LeftEye           = SMOwner.LeftEye;
 }
示例#9
0
    public override void Init()
    {
        //Debug.Log("CHASE Init");
        m_stateId         = FSMStateIDs.StateIds.FSM_NavSumoChase;
        CharacterAgent    = SMOwner.GetComponent <Agent>();
        CharacterRenderer = SMOwner.GetComponent <MeshRenderer>();
        Target            = SMOwner.Target;

        NA    = SMOwner.GetComponent <NavMeshAgent>();
        SumoM = FindObjectOfType <SumoManager>();
    }
示例#10
0
    public override void Init()
    {
        //Debug.Log("Ref Init");
        m_stateId         = FSMStateIDs.StateIds.FSM_NavSumoRef;
        CharacterAgent    = SMOwner.GetComponent <Agent>();
        CharacterRenderer = SMOwner.GetComponent <MeshRenderer>();
        Target            = SMOwner.Target;

        PointList = FindObjectsOfType <PointScoring>();
        SumoM     = FindObjectOfType <SumoManager>();
        NA        = SMOwner.GetComponent <NavMeshAgent>();
    }