예제 #1
0
    // Use this for initialization
    void Start()
    {
        simulationManager = GameObject.FindGameObjectWithTag("SimulationManager").GetComponent <SimulationManager>();

        simulationManager.AddDestinationPoint(this.destiantionType, this.gameObject);

        destinationMaterial = this.gameObject.GetComponent <Renderer>().material;
    }