Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        _mousFun = MouseFunctions.instance;
        if (_mousFun == null)
        {
            Debug.LogWarning("Mouse function not assign in scenes!!");
        }
        _mousFun.Right_Click_Once_Event   += _mousFun_Right_Click_Once_Event;
        _mousFun.Right_Double_Click_Event += _mousFun_Right_Double_Click_Event;
        _mousFun.Left_Click_Once_Event    += _mousFun_Left_Click_Once_Event;
        _mousFun.Left_Double_Click_Event  += _mousFun_Left_Double_Click_Event;

        _bt = GetComponent <BehaviorTree>();
        if (_bt == null)
        {
            Debug.LogWarning("No BehaviorTree attach!!!");
            return;
        }

        _CC = Camera_Controller.Instance;
        if (_CC == null)
        {
            Debug.LogWarning("No camera controller!!!");
        }
        _CC.Camera_Mode_Change_Event += _Camera_Mode_Changed;

        _RichAI = GetComponent <RichAI>();
        _AIPath = GetComponent <AIPath>();
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     _cameraController = Camera_Controller.Instance;
     _cameraController.Camera_Mode_Change_Event += _Camera_Mode_Cahanged;
 }