Exemplo n.º 1
0
 void Start()
 {
     currentTime = Random.Range(15, 19);
     theType     = FindObjectOfType <PasserType>();
     thePasser   = FindObjectOfType <PasserByManager>();
     speed       = Random.Range(230, 301);
 }
Exemplo n.º 2
0
 void Start()
 {
     currentTime = Random.Range(15, 19);
     thePasser   = FindObjectOfType <PasserByManager>();
     theType     = FindObjectOfType <PasserType>();
     /* 걸어다니는 속도 250-300사이에서 랜덤으로 설정 */
     speed = Random.Range(230, 301);
 }
Exemplo n.º 3
0
 void Start()
 {
     currentTime = Random.Range(1, 2);
     theGet      = FindObjectOfType <GetCompanyManager>();
     thePasser   = FindObjectOfType <PasserByManager>();
     theBuild    = FindObjectOfType <LandmarksHandler>();
     theChat     = FindObjectOfType <CitizenChatManager>();
     theType     = FindObjectOfType <PasserType>();
 }
Exemplo n.º 4
0
 void Start()
 {
     /* 첫 1-2초 사이에 등장 */
     currentTime = Random.Range(1, 2);
     theGet      = FindObjectOfType <GetCompanyManager>();
     theChat     = FindObjectOfType <CitizenChatManager>();
     theType     = FindObjectOfType <PasserType>();
     theCountry  = FindObjectOfType <ChangeCountryName>();
     theHandler  = FindObjectOfType <LandmarksHandler>();
 }
Exemplo n.º 5
0
    public void RandomPasserType()
    {
        float x = transform.localPosition.x;

        int ran = Random.Range(0, 2);

        if (ran == 0)
        {
            type = PasserType.Walk;

            if (x == Config.TRACK_WIDTh)
            {
                transform.localRotation = Quaternion.Euler(0f, 90f, 0f);
            }
            else if (x == -Config.TRACK_WIDTh)
            {
                transform.localRotation = Quaternion.Euler(0f, 270f, 0f);
            }
            else
            {
                int dirRan = Random.Range(0, 2);
                if (dirRan == 0)
                {
                    transform.localRotation = Quaternion.Euler(0f, 90f, 0f);
                }
                else
                {
                    transform.localRotation = Quaternion.Euler(0f, 270f, 0f);
                }
            }
        }
        else
        {
            type = PasserType.Run;
        }
    }
Exemplo n.º 6
0
 void Start()
 {
     thePasser = FindObjectOfType <PasserByManager>();
     theType   = FindObjectOfType <PasserType>();
     speed     = Random.Range(250, 301);
 }