void Start()
    {
        PM = Managers[(int)Enum.Managerlist.Player].GetComponent <PlayerManagerScripts>();
        SM = Managers[(int)Enum.Managerlist.Scene].GetComponent <SceneManagerScript>();

        initPosition.x = -9.16f; // 카메라의 초기값 ( 캐릭터를 바라보는 위치 )
        initPosition.y = 2.33f;
        initPosition.z = 0.58f;
        job.GetComponent <Text>().text = "해적";

        for (int i = 0; i < 3; i++)
        {
            skill[i].transform.GetComponent <Image>().sprite = PirateSKILL[i];
        }

        skill_description.transform.GetComponent <Text>().text = "기본적인 해적의 근접공격 스킬, 연속으로 사용시 연타모션을 취한다.";

        camera.transform.position = initPosition;

        previous.gameObject.SetActive(false);
    }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        MGR = new ManagerSingleton();
        FC  = new FollowCamera();
        UI  = new UISingleton();
        bb  = UI.Get_Instance().transform.GetChild(3).gameObject;
        ReturnOldScene    d_s = new GameManagerScript().Get_OldScene;
        ReturnOldPosition d_p = new PlayerManagerScripts().Get_OldPosition;



        if (d_s() != null)
        {
            if (d_s() != null)
            {
                if (d_s() != SceneManager.GetActiveScene().ToString() || d_s() != null)
                {
                    this.transform.position = d_p();
                }
            }
        }

        Vector3 angles = this.transform.eulerAngles;

        Rotate = this.transform.forward.x;
        Anim   = this.GetComponent <Animator>();

        if (Target_Frame != null)
        {
            Target_Frame.SetActive(false);
        }

        MoveFlag = false;

        if (this.gameObject.transform.name == "Pirate") // 나중에 다른 캐릭터 추가되면 리소스로드로 Sprite 바꾸는거 추가... 19.08.15
        {
        }
    }