Beispiel #1
0
    private void Xzabb_OnXZABBEnter(GameObject go1, GameObject other)
    {
        //Checks if the other XZABB has any placement locations
        PlacementLocation pl = other.GetComponentInParent <PlacementLocation>();

        if (pl == null)
        {
            return;
        }

        if (pl.GetIsValid(this))
        {
            //Sets the currentPlacementLocation to pl. This means that, if it's dropped, it will go there
            prospectivePL = pl;
        }
    }