예제 #1
0
 // Use this for initialization
 void Start()
 {
     h=new Vector3[0];
     dmg=new int[0];
     drawdmg = false;
     //arme1 = GameObject.FindWithTag("Arme");
     //arme2 = GameObject.FindWithTag("Arme");
     allonge = 1.0F;
     arme = 0;
     temps = 0.0F;
     temps2 = 0.0F;
     dd=GetComponent<DetectScript>();
     gameManager = GameObject.FindWithTag("GameController").GetComponent<GameManagement>();
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        lineCount = 2;

        detector = playerObject.GetComponent <DetectScript>();

        lines  = new string[lineCount];
        curPos = 0;

        lines [0] = "Testing";
        lines [1] = "ERORR";

        textScript    = txtDirObj.GetComponent <script_directory> ();
        optionsScript = txtDirObj.GetComponent <script_option> ();
        curName       = "cheesechan";
        getScene(curName, 0);
    }