示例#1
0
        private void Start()
        {
            fsm    = GetComponent <NPCBehaviour>();
            player = GameObject.FindGameObjectWithTag("Player").transform;
            input  = FindObjectOfType <InputManager>();

            if (guiSpeak == null)
            {
                guiSpeak = GameObject.FindGameObjectWithTag("Interact Speech");
            }

            currInteractDist = interactDist;
            requested        = false;

            string sceneName = SceneManager.GetActiveScene().name;

            if (sceneName.EndsWith("1"))
            {
                levelTips = NPCLines.INTRO_LINES_LVL1;
            }
            else if (sceneName.EndsWith("2"))
            {
                levelTips = NPCLines.INTRO_LINES_LVL2;
            }
            else if (sceneName.EndsWith("3"))
            {
                levelTips = NPCLines.INTRO_LINES_LVL3;
            }

            linesRead = 0;
        }
 private void Start()
 {
     bee       = GetComponent <NPCBehaviour>();
     currSpeed = 0f;
 }