예제 #1
0
    public void CmdSpawnConstruction(int rotation)
    {
        PlayerResourceScript resource = gameObject.GetComponent <PlayerResourceScript>();

        if (resource.UseResource(10))
        {
            CmdRealBuild(rotation);
        }
    }
예제 #2
0
 private void Start()
 {
     resource = player.GetComponent <PlayerResourceScript>();
 }