void Start()
	{
		if (mover == null)
		{
			mover = GetComponent<SimpleMover>();
		}
		if (partnerLink == null)
		{
			partnerLink = GetComponent<PartnerLink>();
		}
		if (tracer == null)
		{
			tracer = GetComponent<Tracer>();
		}
		if (conversingSpeed == null)
		{
			conversingSpeed = GetComponent<ConversingSpeed>();
		}
		startSpeed = mover.maxSpeed;
		headFill.transform.localScale = Vector3.zero;
	}
예제 #2
0
 void Start()
 {
     if (mover == null)
     {
         mover = GetComponent <SimpleMover>();
     }
     if (partnerLink == null)
     {
         partnerLink = GetComponent <PartnerLink>();
     }
     if (tracer == null)
     {
         tracer = GetComponent <Tracer>();
     }
     if (conversingSpeed == null)
     {
         conversingSpeed = GetComponent <ConversingSpeed>();
     }
     startSpeed = mover.maxSpeed;
     headFill.transform.localScale = Vector3.zero;
 }
    // // // // // //

    void Awake()
    {
        if (mover == null)
        {
            mover = GetComponent <SimpleMover>();
        }
        if (tracer == null)
        {
            tracer = GetComponent <Tracer>();
        }
        if (conversationScore == null)
        {
            conversationScore = GetComponent <ConversationScore>();
        }
        if (conversingSpeed == null)
        {
            conversingSpeed = GetComponent <ConversingSpeed>();
        }

        partnerLine = GetComponent <LineRenderer>();

        pointsGlobal = GameObject.FindGameObjectWithTag("Global Points");
    }
	// // // // // //

	void Awake()
	{
		if (mover == null)
		{
			mover = GetComponent<SimpleMover>();
		}
		if (tracer == null)
		{
			tracer = GetComponent<Tracer>();
		}
		if (conversationScore == null)
		{
			conversationScore = GetComponent<ConversationScore>();
		}
		if (conversingSpeed == null)
		{
			conversingSpeed = GetComponent<ConversingSpeed>();
		}
		
		partnerLine = GetComponent<LineRenderer>();
		
		pointsGlobal = GameObject.FindGameObjectWithTag("Global Points");
	}