Пример #1
0
    void Awake()
    {
        if(startingAction != null)
        {
            if(addEventOfName(startingAction)){}//Success!
            else
            {
                Debug.LogError("No Starting Event Found with name: " + startingAction);
            }
        }

        behavior_impl = GetComponent<SM_Behavior>();
        if(behavior_impl == null){
            Debug.LogError("No behavior impl attached");
        }
    }
Пример #2
0
    void Awake()
    {
        if (startingAction != null)
        {
            if (addEventOfName(startingAction))
            {
            }                                               //Success!
            else
            {
                Debug.LogError("No Starting Event Found with name: " + startingAction);
            }
        }

        behavior_impl = GetComponent <SM_Behavior>();
        if (behavior_impl == null)
        {
            Debug.LogError("No behavior impl attached");
        }
    }